async function verifyDxToken(token) {
  const CaptchaSDK = require('dx-captcha-sdk')
  return new Promise((resolve, reject) => {
    const sdk = new CaptchaSDK('7ddea44a004f2d36723ef1d5a45d8998', 'bbcc1ae51571b25fc161b4f5d9c7dec2')
    sdk.verifyToken(token, {
      timeout: 3000,
      params: {
        ip: '',
        sceneCode: ''
      }
    }).then(({captchaStatus, detail}) => {
      console.log("verifyDxToken========", '验证成功')
      return resolve(detail)
    }).catch(({detail}) => {
      console.error("verifyDxToken========", '验证失败')
      return reject(detail)
    })
  })
}

module.exports = {
  verifyDxToken
}
